package com.wyz.controller;


import com.wyz.Service.SysOperatorLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;


/**
 * @ClassName SysOperatorLogcontroller
 * @Version 1.0
 **/
@RequestMapping(value = "/operatorLog")
@Controller
public class SysOperatorLogcontroller {

    /***
     * 日志
     */
    private Logger logger = LoggerFactory.getLogger(SysOperatorLogcontroller.class);

    /**
     * 注入service
     */
    @Autowired
    private SysOperatorLogService sysOperatorLogService;


    @RequestMapping("/find-operator-log-all")
    public String findOperatorLogAll(HttpSession session) {
        session.setAttribute("loginLogs", sysOperatorLogService.findOperatorLogAll());
        return "/back/loginLog";
    }
}
